home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0158.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  2.0 KB  |  38 lines

  1. Firstly, thanks to the people that helped me with my query a while back 
  2. on moving a car around the screen with a better feel (of inertia) to it.
  3. It was suggested that I read the Inertia tutorial which I promptly did.
  4. I also found an example program of a Lunar Lander style code.
  5.  
  6. I have since got it feeling reasonably good  with sliding around corners,
  7. acceleration, etc. and introduced gears, and 2 cars controlled by 2 joysticks. 
  8. I tried out some of the recent suggestions on car collisions of just simply
  9. transferring the speed of one car to the other and adding in some friction.
  10. When the cars collide a boom sound is played and they reflect off each 
  11. other and I turned it into a sort of "smash-up-derby" where you start with
  12. 5 lives, each life consisting of a certain amount of damage. Once one player
  13. has lost all his lives the other is declared the winner. The graphics are
  14. pretty crude and there is just a still background.
  15.  
  16.   Now I want the cars to have some interaction with the background. I would 
  17. like to have a track, or perhaps just some obstacles to avoid which would
  18. cause damage also. What is the best way of going about achieving collision
  19. detection with the background and with various objects around the track.
  20. e.g. a grandstand or fence or an oil slick.
  21.    The cars are currently bobs but there is probably no reason why they 
  22. cannot be sprites. 
  23.    Should I just draw the background in a certain colour range and check
  24. for collision with certain colours( I think this method was used in the
  25. space ship shoot em up game which came with AMOS,-its name escapes me)
  26. or create the background using bobs and use bob collision techniques.
  27.    Any suggestions?
  28.  
  29. Also there is a small amount of flicker which I would like to get rid of.
  30. Any suggestions on removing that. i.e. Should I be using autoback 0 with 
  31. the bob update off and bob clear,bob draw techniques?  I had a go at it
  32. but couldn't get it working. Any suggestions on that one also would be
  33. appreciated.
  34.  
  35. -thanks in advance
  36. Max 
  37.  
  38.